﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Controls_Link : System.Web.UI.UserControl
{
    string strSQL;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            strSQL = "select top 12 * from Link where link_Lock=0 order by link_ID desc";
            IDataReader dr = Class1.GetDataReader(strSQL);
            dl_link.DataSource = dr;
            dl_link.DataBind();
            dr.Close();
            dr.Dispose();
        }
    }
}
